package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 勘测屋顶资料收集关联屋顶类型、厂房性质、防水方式对象 erp_survey_data_dict_info
 * @author wutao
 * @date 2024-05-25
 */
@TableName ("erp_survey_data_dict_info")
@ApiModel (value = "erp_survey_data_dict_info对象", description = "勘测屋顶资料收集关联屋顶类型、厂房性质、防水方式")
@Data
public class SurveyDataDictEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 基础数据Id
     */
    @ApiModelProperty ("基础数据Id")
    @TableField ("base_data_id")
    @Excel (name = "基础数据Id")
    private String baseDataId;

    /**
     * 字典表编码，字典表Id
     */
    @ApiModelProperty ("字典表编码，字典表Id")
    @TableField ("dict_code")
    @Excel (name = "字典表编码，字典表Id")
    private Integer dictCode;

    /**
     * 字典关联类型
     */
    @ApiModelProperty ("资料与字典关联类型")
    @TableField ("type")
    @Excel (name = "资料与字典关联类型;1:屋顶类型;2:厂房性质;3:屋面防水方式")
    private Integer type;

    /**
     * 是否在用
     */
    @ApiModelProperty ("是否在用")
    @TableField ("is_used")
    @Excel (name = "是否在用")
    private Integer isUsed;


    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "baseDataId", getBaseDataId () )
                .append ( "dictCode", getDictCode () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
